﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace FractionServiceLibary
{
    [DataContract]
    public class Fraction
    {
        int _numerator;
        [DataMember]
        public int Numerator
        {
            get { return _numerator; }
            set { _numerator = value; }
        }


        int _denominator;

        [DataMember]
        public int Denominator
        {
            get { return _denominator; }
            set { _denominator = value; }
        }

        Fraction()
        {
            this._numerator = 0;
            this._denominator = 1;
        }

        Fraction(int numerator, int denominator)
        {
            this._numerator = numerator;
            this._denominator = denominator;
        }
    }
}
